<template>
  <div>
    <div>
      <h4>评分</h4>
      <el-row>
        <el-col :span="11">
          <div>
            <span>1.骨折固定稳定性 </span>
            <el-select v-model="pgForm.pfvalue1" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="11">
          <div>
            <span>2.骨折愈合程度 </span>
            <el-select v-model="pgForm.pfvalue2" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col>
          <div>
            <span>ADL评分： </span>
            <el-input v-model="pgForm.pfinput" placeholder="" style="width: 10%;"></el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "give_a_mark",
  title: "评分",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      options1: [{
        value: '稳定性骨折',
        label: '稳定性骨折'
      }, {
        value: '不稳定性骨折',
        label: '不稳定性骨折'
      }],
      options2: [{
        value: '纤维骨痂形成期(0-4周)',
        label: '纤维骨痂形成期(0-4周)'
      }, {
        value: '骨痂形成期(5-12周)',
        label: '骨痂形成期(5-12周)'
      }, {
        value: '骨折愈合期(12周以后)',
        label: '骨折愈合期(12周以后)'
      }],
      pgForm: {
        pfvalue1: '',
        pfvalue2: '',
        pfinput: ''
      }
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
</style>
